/***********************************************************************
 * Module:  SelectionnerMemento.java
 * Author:  Dian
 * Purpose: Defines the Class SelectionnerMemento
 ***********************************************************************/

package memento;

import originator.Originator;

import command.Command;

public class SelectionnerMemento implements Memento {
	
	private int debutSelection;
	
	private int finSelection;
	
	private Command command;

	public SelectionnerMemento(int debutSelection, int finSelection,
			Command command) {
		super();
		this.debutSelection = debutSelection;
		this.finSelection = finSelection;
		this.command = command;
		System.out.println("###constructor###ici   "+ debutSelection+"   et " +finSelection);
	}

	@Override
	public Originator getCommand() {
		return (Originator) this.command;
	}

	public int getDebutSelection() {
		return debutSelection;
	}

	public void setDebutSelection(int debutSelection) {
		this.debutSelection = debutSelection;
	}

	public int getFinSelection() {
		return finSelection;
	}

	public void setFinSelection(int finSelection) {
		this.finSelection = finSelection;
	}

}